home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,401 to 4,500 / aol-file-protocol-4400-4401-to-4500.zip / AOLDLs / PDA-Newton Development / ND Newt Development Environm / newt-devenv-31.sit / turtle.txt < prev    next >
Text File  |  1995-08-11  |  6KB  |  139 lines

  1. turtle.txt
  2. 8/11/95
  3. Newt 3.1
  4. (c) 1995, S. Weyer, All Rights Reserved Worldwide.
  5. weyer@netaxs.com
  6.  
  7.  
  8. The first version of Newt (Newt 1.0 in 10/93) was a turtle-graphics
  9. environment. "Newton Turtle" and "NewtTurtle" seemed a bit too long, so I
  10. shortened its name to Newt, given its amphibious similarity to its Logo
  11. cousin and also its non-turtle uses. For exploration of Newt's "turtle
  12. personality", familiarity with Logo concepts and turtles would be useful
  13. though not necessary. Although Newt does not "understand" any of the Logo
  14. dialects directly, it does provide turtle commands, and an optional module
  15. for manipulating Logo-style data structures, i.e., words and sentences.
  16. Despite syntactic differences between NewtonScript and Logo, you can borrow
  17. ideas and translate code from Logo materials and books, e.g., Abelson &
  18. diSessa, books on fractals, etc.
  19.  
  20.  
  21. Exploring Newt's Turtle Personality
  22.  
  23. First, install the NewtDraw plug-in, and then start Newt. See using.txt
  24. for general user interface information.
  25.  
  26. Try the following (see also the NewtTurT interactive tutorial):
  27. - select the folder at top of screen containing your sources. Newt
  28.   compiles/checks any methods and object definitions (if there are problems
  29.   listed, see Errors).
  30. - tap the overview dot (between two scroll arrows in bottom menu)
  31. - select Newt Drawing; then select Newt Controls.
  32.  
  33. - write a number into the input field to the right of Dist, e.g., 80. tap Dist.
  34. - write a number into the input field to the right of Deg, e.g., 90. tap Deg.
  35. - write a (small) number, e.g., 4, into the input field to the right of Times.
  36. - tap Times.
  37. - tap Newt? checkbox to hide Newt(s) for faster drawing. tap it again to show.
  38. - tap Erase. tap Home.
  39. - tap Expr button (in Eval Controls) and select different expressions (defined from
  40.   graphic0.nwt); you may wish to Erase, Home between each.
  41. - edit values for times, dist, deg (if these are used as parameters)
  42. - tap Eval button (in Eval Controls).
  43. - draw a picture that you like, tap Save (later check current folder in Notepad).
  44. - drag Newt to another location and Eval an expression again.
  45. - select and Eval the :addNewt expression from the Expr list.  This creates
  46.   multiple Newts.
  47. - select and Eval another expression like :squiral(8,40) -- this demonstrates
  48.   broadcasting messages to multiple Newts. The Erase and Home buttons work on
  49.   all Newts together, or you can use gestures on a specific newt, e.g., scrub,
  50.   or messages, e.g., the newt1 expression.
  51. - (optional) close Newt Drawing and Newt Controls
  52.  
  53.  
  54. This quick tour should give you a basic idea of some of Newt's capabilities.
  55. Although there is a more information in this file describing Newt's interface,
  56. there is almost none regarding NewtonScript syntax or Newt's methods. If you
  57. would like real documentation and many more examples, register!
  58.  
  59.  
  60. Newt Drawing
  61. -----
  62. Newt's drawing area appears when you select it from overview, use Newt
  63. Controls, or evaluate an expression using drawing methods. You can use the
  64. following gestures to operate on the Newt closest to the start of the gesture
  65. (if you have multiple Newts).
  66. - tap
  67.   Newt moves to location of pen using current Pen setting, preserving heading.
  68. - line
  69.   Newt sets heading to orientation (mod 45 degrees) of line. If Newt is already
  70.   headed in that direction, it draws a line of same length (rounded to mod 10)
  71.   of your gesture.
  72. - scrub
  73.   same as Erase
  74. - drag
  75.   Hold down on a Newt until you "hear a squeak and get a fat pen" (actually the
  76.   "hilite" gesture). Then, drag to a new location before lifting pen. Newt moves
  77.   to new location without drawing.
  78.  
  79. Use the Save button in Eval Controls to save the current drawing in the Notepad
  80. under the current folder tab category. Newt currently "remembers" the current
  81. drawing when you close and re-enter Newt Drawing.
  82.  
  83.  
  84. Newt Controls
  85. -----
  86. Select this floating, draggable palette via overview. It is located initially at
  87. the top of Newt Drawing. and contains the following controls: Erase, Home,
  88. Pen, Color, Newt?, Times button & field, Dist button & field, Deg button &
  89. field. Like keyboards and Eval Controls, it can be dragged by its bottom
  90. border.
  91.  
  92. Times
  93. The value in this field (default: 0) can be used as a times variable in the
  94. Eval field. The Times button uses this value to create an iteration, e.g., if
  95. Times=4, Dist=40, Deg=90, tapping on Times tells Newt to :go(40) then
  96. :turn(90) 4 times, i.e., making a square -- the NewtonScript is written to the
  97. Eval field where it is executed immediately (and you can edit it later if you
  98. like). Tap Deg to turn, then tap Times or the Eval button again to see what
  99. happens.
  100.  
  101. Dist
  102. The value in this field (default: 0) can be used as a dist variable in the Eval
  103. field. The Dist button uses this value for distance, e.g., if Dist=20, tapping
  104. on Dist tells Newt to :go(20), moving 20 in the "forward" direction, i.e.,
  105. along Newt's current heading. This draws a line if Pen is non-zero. A negative
  106. value for dist just means go "backward". To give you some idea of scale,
  107. Newt's default drawing area on MessagePad is roughly 228x310 (on a MP100).
  108. Newt clips at its drawing boundary.
  109.  
  110. Deg
  111. The value in this field (default: 0) can be used as a deg variable in the Eval
  112. field. The Deg button uses this value for degrees, e.g., if Deg=90, tapping on
  113. Deg tells Newt to :turn(90), turning right (clockwise) by 90 degrees. A
  114. negative value just means turn left. Newt will "mod" your number to prevent
  115. dizziness.
  116.  
  117. Erase
  118. Newt erases drawing area, and remains with same position, heading and pen.
  119.  
  120. Home
  121. Newt teleports to center, sets heading to 0 ("up"), preserving pen setting but
  122. without drawing.
  123.  
  124. Pen
  125. Newt sets pen thickness used in drawing (default: 1) and grows or shrinks in
  126. size. 0 means Newt just moves (no line)
  127.  
  128. Color
  129. Newt sets pen pattern used in drawing (default: black). Currently, this color
  130. is not available in saved Notepad drawings (everything is black).
  131.  
  132. Newt?
  133. If checked (default: yes), Newt appears with its tip at current x,y position,
  134. pointing in current direction, and "xor-ed" so that it does not interfere with
  135. drawing.
  136.  
  137.  
  138.  
  139.